/* base.css - Base styles that complement the dark theme */

/* Reset and base styles */
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Form elements base styling */
.form-group {
    margin-bottom: 1rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

input,
select,
textarea {
    width: 100%;
    padding: 0.75rem;
    margin: 0;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

input[type="checkbox"] {
    width: auto;
    margin-right: 0.5rem;
}

button {
    cursor: pointer;
    transition: all 0.3s ease;
}

/* Event list base styles */
.event-list {
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    line-height: 1.6;
}

.event-item {
    position: relative;
    word-wrap: break-word;
}

.timestamp {
    font-size: 0.85rem;
    opacity: 0.7;
}

/* Animation keyframes */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Status messages */
.submit-success {
    color: #4ade80;
    text-align: center;
    margin-top: 1rem;
}

.submit-error {
    color: #f87171;
    text-align: center;
    margin-top: 1rem;
}

/* Utility classes */
.d-none {
    display: none !important;
}

.text-center {
    text-align: center;
}

.mb-3 {
    margin-bottom: 1rem !important;
}

.mb-4 {
    margin-bottom: 1.5rem !important;
}

.me-2 {
    margin-right: 0.5rem !important;
}

.mt-4 {
    margin-top: 1.5rem !important;
}

/* Modal dialog adjustments */
.modal-dialog {
    max-width: min(720px, 95vw);
    max-height: calc(100vh - 3rem);
}

/* Prevent modal-dialog-centered from stretching to fill viewport */
.modal-dialog-centered {
    min-height: auto !important;
}

.modal-content {
    max-height: calc(100vh - 3rem);
    overflow-y: auto;
}

@media (max-width: 768px) {
    .modal-dialog {
        max-width: 95vw;
        max-height: calc(100vh - 2rem);
    }

    .modal-content {
        max-height: calc(100vh - 2rem);
    }
}

/* Responsive utilities */
@media (max-width: 768px) {
    .container {
        padding: 0 0.5rem;
    }

    input,
    select,
    textarea {
        font-size: 16px; /* Prevents zoom on iOS */
    }
}
